#define _CRT_SECURE_NO_WARNINGS 1

#include <iostream>	
using namespace std;

int gcd(int a, int b) {
    while (a != 0) {
        int t = a;
        a %= b;
        b = t;
		printf("a = %d, b = %d", a, b);
    }
    return b;
}

int main(){ 
	int x = gcd(12, 18);
    return 0;
};